<?php
/**
 * 自制成品上传
 * @var unknown_type
 */
define('IN_ECS', true);

require(dirname(__FILE__) . '/includes/init.php');
if($_SESSION['user_id']==0){
	header("Location: user.php");
}
assign_template();
$position = assign_ur_here();
$smarty->assign('page_title',      $position['title']);    // 页面标题
$smarty->assign('ur_here',         $position['ur_here']);  // 当前位置

/* meta information */
$smarty->assign('keywords',        htmlspecialchars($_CFG['shop_keywords']));
$smarty->assign('description',     htmlspecialchars($_CFG['shop_desc']));
$smarty->assign('categories',       get_categories_tree(0)); // 分类树
//$smarty->assign('category',         cat_list(0, 0, true));

$gid = isset($_REQUEST['gid'])?$_REQUEST['gid']:'';
$gname = isset($_REQUEST['gname'])?$_REQUEST['gname']:'';
$act = isset($_REQUEST['act'])?$_REQUEST['act']:'';

//var_dump($_SESSION['user_id']);


$smarty->assign('uid', $_SESSION['user_id']);
$smarty->assign('gid', $gid);
$smarty->assign('gname', $gname);
$smarty->assign('act', $act);
assign_dynamic('custom_goods'); // 动态内容
$smarty->display('custom_goods.dwt');
?>